package com.cos.ssm2.services;

import com.cos.ssm2.common.ResponseResult;
import com.cos.ssm2.entity.Emp;

import java.util.List;

/**
 * @author: COS
 * @time: 2022/6/10 9:58
 * @description:
 */
public interface EmpServices {
    List<Emp> getAll();

    ResponseResult checkEname(String ename);

    ResponseResult doLogin(String ename, String pwd);

    ResponseResult getEmpByPage(Integer page, Integer limit);

    ResponseResult delEmp(Integer eno);

    ResponseResult addEmp(Emp e);

    ResponseResult getEmpByEno(Integer eno);

    ResponseResult update(Emp emp);
}
